package com.cmas.platform.domain;

import lombok.Data;
import com.aidex.common.core.domain.BasePlusEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 审核记录表对象 approve_record
 *
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-03-13
 */
@Data
public class ApproveRecord extends BasePlusEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 审核项目ID
     */
    @Excel(name = "审核项目ID")
    @LogField
    @FieldRemark(name = "审核项目ID", field = "itemId")
    private String itemId;

    /**
     * 审核说明
     */
    @Excel(name = "审核说明")
    private String reason;

    /**
     * 审核项目数据表名
     */
    @Excel(name = "审核项目数据表名")
    @LogField
    @FieldRemark(name = "审核项目数据表名", field = "itemTableName")
    private String itemTableName;

    /**
     * 审核项目前状态
     */
    @Excel(name = "审核项目前状态", dictType = "approve_status")
    @LogField
    @FieldRemark(name = "审核项目前状态", field = "beforeStatus")
    private String beforeStatus;

    /**
     * 审核项目后状态
     */
    @Excel(name = "审核项目后状态", dictType = "approve_status")
    @LogField
    @FieldRemark(name = "审核项目后状态", field = "afterStatus")
    private String afterStatus;


    /**
     * 审核类型
     */
    @LogField
    @FieldRemark(name = "审核类型", field = "type")
    private String type;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("itemId", getItemId())
                .append("reason", getReason())
                .append("itemTableName", getItemTableName())
                .append("beforeStatus", getBeforeStatus())
                .append("afterStatus", getAfterStatus())
                .append("type", getType())
                .append("remark", getRemark())
                .append("id", getId())
                .append("createBy", getCreateBy())
                .append("createDept", getCreateDept())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("updateIp", getUpdateIp())
                .append("version", getVersion())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
